<?php

namespace app\model;

class UserDepartmentModel extends BaseModel
{
    protected $name = 'user_department';

    /**
     * Notes: 获取所有列表
     * User: chenLei
     * Date: 9/7/25
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public function list()
    {
        return $this->select()->toArray();
    }
}